import { ReqPage } from ".";

export namespace TagPackage {
  // 保存参数
  export interface Save {
    id?: number;
    packageType: string;
    code: string;
    tareWeight: number;
    remark: string;
  }

  // 查询参数
  export interface SearchParams extends ReqPage {
    packageType: string;
    code: string;
    status: number | string;
  }

  // 查询参数
  export interface Search {
    records: SearchProps[];
  }

  // 查询参数值
  export interface SearchProps {
    id: number;
    _tareWeight: number;
    packageType: string;
    code: number;
    tareWeight: number;
    status: number;
    remark: string;
    douser: string;
    dotime: string;
    uptime: string;
  }
}

// 固定容器
export namespace Package {
  // 保存
  export interface Save {
    packageType: string;
    packageCode: string;
    tareWeight: number;
    remark: string;
  }
  // 查询参数
  export interface SearchParams extends ReqPage {
    packageCode: string;
    packageType: string;
    status: string;
  }
  // 查询
  export interface Search {
    id: number;
    packageType: string;
    packageCode: number;
    tareWeight: number;
    remark: string;
    status: number;
    douser: string;
    dotime: string;
    uptime: string;
  }
}
